.class Lcom/waiqin365/compons/camera/j;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/waiqin365/compons/camera/h;


# direct methods
.method constructor <init>(Lcom/waiqin365/compons/camera/h;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iput-object p2, p0, Lcom/waiqin365/compons/camera/j;->a:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->c(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Ljava/util/ArrayList;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/compons/camera/j;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->c(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Ljava/util/ArrayList;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/compons/camera/j;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->c(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->f(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->g(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->h(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v2, v2, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v2}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->c(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    invoke-static {v1}, Lcom/waiqin365/compons/camera/h;->a(Lcom/waiqin365/compons/camera/h;)Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->startAnimation(Landroid/view/animation/Animation;)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    invoke-virtual {v0}, Lcom/waiqin365/compons/camera/h;->notifyDataSetChanged()V

    :goto_2
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->c(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v1, v1, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v1}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->d(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)I

    move-result v1

    if-lt v0, v1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u5f88\u62b1\u6b49\uff0c\u60a8\u6700\u591a\u53ea\u53ef\u9009\u62e9"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v2, v2, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v2}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->d(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "\u5f20\u56fe\u7247\u3002"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    goto :goto_2

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->c(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Ljava/util/ArrayList;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/compons/camera/j;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/TextView;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->f(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->g(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/j;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/h;->a:Lcom/waiqin365/compons/camera/CameraAlbumActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->h(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    goto/16 :goto_1
.end method
